package bishi;

import java.util.ArrayList;
import java.util.Arrays;
import java.util.Scanner;

/**
 * @Author liuhaoqi
 * @Date 2020/9/12 20:13
 * @Version 1.0
 */
public class Vivo01 {
    public static void main(String[] args) {
        Scanner scanner = new Scanner(System.in);
        String s = scanner.nextLine();
        String[] split = s.replaceAll("\"", "").split(",");
//        ArrayList<String> list = new ArrayList<>();
        StringBuffer sb = new StringBuffer();
        String temp = "-1";
        for (int i = 0; i < split.length; i++) {
            if (temp.equals(split[i])) {
                temp = String.valueOf(i);
//                list.add(temp);
                sb.append(i+",");
                i = 0;
                continue;
            }
        }
        sb.append("0");
        System.out.println(sb.toString());
    }
}
